home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / lib / c / stdio / RCS / fputs.c,v < prev    next >
Encoding:
Text File  |  1991-12-03  |  1.9 KB  |  94 lines

  1. head     1.1;
  2. branch   ;
  3. access   ;
  4. symbols  sprited:1.1.1;
  5. locks    ; strict;
  6. comment  @ * @;
  7.  
  8.  
  9. 1.1
  10. date     88.06.10.16.23.48;  author ouster;  state Exp;
  11. branches 1.1.1.1;
  12. next     ;
  13.  
  14. 1.1.1.1
  15. date     91.12.02.19.57.27;  author kupfer;  state Exp;
  16. branches ;
  17. next     ;
  18.  
  19.  
  20. desc
  21. @@
  22.  
  23.  
  24.  
  25. 1.1
  26. log
  27. @Initial revision
  28. @
  29. text
  30. @/* 
  31.  * fputs.c --
  32.  *
  33.  *    Source code for the "fputs" library procedure.
  34.  *
  35.  * Copyright 1988 Regents of the University of California
  36.  * Permission to use, copy, modify, and distribute this
  37.  * software and its documentation for any purpose and without
  38.  * fee is hereby granted, provided that the above copyright
  39.  * notice appear in all copies.  The University of California
  40.  * makes no representations about the suitability of this
  41.  * software for any purpose.  It is provided "as is" without
  42.  * express or implied warranty.
  43.  */
  44.  
  45. #ifndef lint
  46. static char rcsid[] = "$Header: atoi.c,v 1.1 88/04/28 17:20:23 ouster Exp $ SPRITE (Berkeley)";
  47. #endif not lint
  48.  
  49. #include "stdio.h"
  50.  
  51. /*
  52.  *----------------------------------------------------------------------
  53.  *
  54.  * fputs --
  55.  *
  56.  *    Writes a string out onto a stream.
  57.  *
  58.  * Results:
  59.  *    The return value is EOF if an error occurred while writing
  60.  *    the stream.
  61.  *
  62.  * Side effects:
  63.  *    The characters of string are written to stream, in order,
  64.  *    up to but not including the terminating null character.
  65.  *
  66.  *----------------------------------------------------------------------
  67.  */
  68.  
  69. int
  70. fputs(string, stream)
  71.     register char *string;        /* String to output. */
  72.     register FILE *stream;        /* Stream on which to write string. */
  73. {
  74.     register int result;
  75.  
  76.     while (*string != 0) {
  77.     result = putc(*string, stream);
  78.     string++;
  79.     }
  80.     return result;
  81. }
  82. @
  83.  
  84.  
  85. 1.1.1.1
  86. log
  87. @Initial branch for Sprite server.
  88. @
  89. text
  90. @d17 1
  91. a17 1
  92. static char rcsid[] = "$Header: /sprite/src/lib/c/stdio/RCS/fputs.c,v 1.1 88/06/10 16:23:48 ouster Exp $ SPRITE (Berkeley)";
  93. @
  94.